package cn.explink.dop.distributor.condition;

import cn.explink.distributor.framework.Condition;

/**
 * 配送员是否有POS机
 *
 * @author songkaojun 2015年3月24日
 */
public class HavingPOS extends MatchableCondition {

	private static final long serialVersionUID = 3750690103574017458L;

	private boolean yesOrNo;

	public HavingPOS() {
		super();
	}

	@Override
	public boolean isMatched(Condition condition) {
		HavingPOS havingPOS = (HavingPOS) condition;
		if (this.yesOrNo == havingPOS.isYesOrNo()) {
			return true;
		}
		return false;
	}

	public boolean isYesOrNo() {
		return this.yesOrNo;
	}

	public void setYesOrNo(boolean yesOrNo) {
		this.yesOrNo = yesOrNo;
	}
}
